(function(YuXi){
	var scrollbar={};
	scrollbar.scroll=function(name){
	
		alert(name);
		var position=$(name).offset().top;
		if(name=="#resour")
		{
			$(name).find("span").attr("class","error1");
		}
		else
		{
			$(name).attr("class","error");
		}
		$("body").animate({
			scrollTop:position
		});
	}

	YuXi.scrollbar=scrollbar;
})(window.YuXi)